package com.zj.service;

//@Description("aaa")
public class User {
    //生成姓名、年龄、性别、地址、手机号的属性
    private String name;
    private int age;
    private String sex;
    private String address;
    private String phone;

    public User() {
        System.out.println("user construct");
    }

    public User(String name, int age, String sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    //生成属性的getter和setter方法
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public String getSex() {
        return sex;
    }
    public void setSex(String sex) {
        this.sex = sex;
    }
    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    //生成toString方法
        @Override
    public String toString() {
        return "User [name=" + name + ", age=" + age + ", sex=" + sex + ", address=" + address + ", phone=" + phone + "]";
    }


}
